package com.dlc.shop.bean.enums;

/**
 * @author: zsm
 * @date: 2023/4/25 11:01
 */
public enum RefundKindEnum {
    /**
     * 重复支付退款
     */
    REPEAT_PAY(1),
    /**
     * 用户申请退款
     */
    USER_APPLY(2),

    /**
     * 订单实付金额大于支付金额的退款
     */
    BEYOND_PAY(3);


    private final Integer num;

    RefundKindEnum(Integer num) {
        this.num = num;
    }

    public Integer value() {
        return num;
    }

    public static RefundKindEnum instance(Integer value) {
        RefundKindEnum[] enums = values();
        for (RefundKindEnum statusEnum : enums) {
            if (statusEnum.value().equals(value)) {
                return statusEnum;
            }
        }
        return null;
    }
}
